home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / devices / src / sendio.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-16  |  1.3 KB  |  64 lines

  1. /*
  2.     (C) 1995, 96 AROS - The Amiga Replacement OS
  3.     $Id$
  4.     $Log$
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include "exec_intern.h"
  9. #include <exec/io.h>
  10. #include <aros/libcall.h>
  11.  
  12. /*****************************************************************************
  13.  
  14.     NAME */
  15.     #include <clib/exec_protos.h>
  16.  
  17.     __AROS_LH1(void, SendIO,
  18.  
  19. /*  SYNOPSIS */
  20.     __AROS_LA(struct IORequest *, iORequest, A1),
  21.  
  22. /*  LOCATION */
  23.     struct ExecBase *, SysBase, 77, Exec)
  24.  
  25. /*  FUNCTION
  26.     Start an asynchronous I/O request by calling the device's BeginIO()
  27.     vector. After sending the messages asynchronously you can wait for
  28.     the message to be replied at the I/O reply port.
  29.  
  30.     INPUTS
  31.     iORequest - Pointer to iorequest structure.
  32.  
  33.     RESULT
  34.  
  35.     NOTES
  36.  
  37.     EXAMPLE
  38.  
  39.     BUGS
  40.  
  41.     SEE ALSO
  42.     OpenDevice(), CloseDevice(), DoIO(), CheckIO(), AbortIO(), WaitIO()
  43.  
  44.     INTERNALS
  45.  
  46.     HISTORY
  47.  
  48. ******************************************************************************/
  49. {
  50.     __AROS_FUNC_INIT
  51.  
  52.     /* Prepare the message. Don't set quick bit. */
  53.     iORequest->io_Flags = 0;
  54.     iORequest->io_Message.mn_Node.ln_Type = 0;
  55.  
  56.     /* Call BeginIO() vector */
  57.     __AROS_LC1 (void, beginIO,
  58.     __AROS_LCA(struct IORequest *, iORequest, A1),
  59.     struct Device *, iORequest->io_Device, 5, Device);
  60.  
  61.     __AROS_FUNC_EXIT
  62. } /* SendIO */
  63.  
  64.